export function textMessage(email){
    return new Promise(function(resolve, reject){
        uni.request({
            url: "/user/textMessage",
            data: {
                email
            },
            success: function(res) {
                resolve(res.data);
            },
			fail(err) {
				reject(err)
			}
        })
    })
}
export function register(email,password,code){
    return new Promise(function(resolve, reject){
        uni.request({
            url: "/user/register",
            data: {
                email,password,code
            },
            success: function(res) {
                resolve(res.data);
            },
			fail(err) {
				reject(err)
			}
        })
    })
}

